
<div class="tab-pane" id="mystery_boxes_set">
	<!--		盲盒改版选项-->
	<div class="panel panel-default" role="tabpanel" style="">
		<div class="panel-heading">盲盒配置</div>
		<div class="panel-body" style="">
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">盲盒时间限制</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="mystery_limit_time" value="0" {if $config['mystery_limit_time']==0} checked="checked"{/if} type="radio"> 跟随活动时间
					</label>
					<label class="radio-inline">
						<input name="mystery_limit_time" value="1" {if $config['mystery_limit_time']==1} checked="checked"{/if} type="radio"> 设置时间开启与关闭
					</label>
				</div>
			</div>
			{if $config['mystery_limit_time']==1}
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">盲盒生效时间</label>
				<div class="col-sm-8 col-xs-12">
					{php $config['mystery_begintime']<$theme['begintime']?($config['mystery_begintime']=$theme['begintime']).($config['mystery_endtime']=$theme['endtime']):"";}
					{php echo view_form_field_daterange('mystery_time', array('start'=>date('Y-m-d H:i:s',$config['mystery_begintime']),'end'=>date('Y-m-d H:i:s',$config['mystery_endtime'])), true);}
				</div>
			</div>
			{/if}
			<div class="form-group">
				<label class="col-xs-12 col-sm-4 col-md-3 col-lg-2 control-label">获得盲盒条件</label>
				<div class="col-sm-8 col-xs-12">
					<label class="radio-inline">
						<input type="radio" name="get_mystery_boxes" id="inlineRadio1" value="2" {if $config['get_mystery_boxes'] == 2 || $system['is_mystery_boxes'] == 2}checked="checked"{/if}> 未支付
					</label>
					<label class="radio-inline">
						<input type="radio" name="get_mystery_boxes" id="inlineRadio1" value="3" {if $config['get_mystery_boxes'] == 3 || $system['is_mystery_boxes'] == 3 || !isset($config['get_mystery_boxes'])}checked="checked"{/if}> 已支付
					</label>
					<label class="radio-inline">
						<input type="radio" name="get_mystery_boxes" id="inlineRadio1" value="1" {if $config['get_mystery_boxes'] == 1}checked="checked"{/if}> 拼团成功
					</label>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">盲盒个数</label>
				<div class="col-sm-6 col-xs-12">
					<div class="tpl">
						<div class="input-group" style="margin-bottom: 10px;">
							<span class="input-group-addon">第1个盲盒</span>
							<select class="form-control" name="mystery_friend_mode1" style="min-width: 80px;">
								<option value="0" {if $config['mystery_friend_mode1'] == 0 }selected="selected"{/if}>助力</option>
								<option value="1" {if $config['mystery_friend_mode1'] == 1 }selected="selected"{/if}>支付即可拆</option>
								<option value="2" {if $config['mystery_friend_mode1'] == 2 }selected="selected"{/if}>拼团成功可拆</option>
							</select>
							{if empty($config['mystery_friend_mode1'])}
							<span class="input-group-addon">助力</span>
							<input type="text" name="mystery_friend_need" value="{$config['mystery_friend_need']}" class="form-control" placeholder="必须设置">
							<span class="input-group-addon">人</span>
							{/if}
						</div>
						<div class="input-group" style="margin-bottom: 10px;">
							<span class="input-group-addon">第2个盲盒</span>
							<select class="form-control" name="mystery_friend_mode2" style="min-width: 80px;">
								<option value="0" {if $config['mystery_friend_mode2'] == 0 }selected="selected"{/if}>未开启</option>
								<option value="-1" {if $config['mystery_friend_mode2'] == -1 }selected="selected"{/if}>助力</option>
								<option value="1" {if $config['mystery_friend_mode2'] == 1 }selected="selected"{/if}>支付即可拆</option>
								<option value="2" {if $config['mystery_friend_mode2'] == 2 }selected="selected"{/if}>拼团成功可拆</option>
							</select>
							{if $config['mystery_friend_mode2']==-1}
							<span class="input-group-addon">助力</span>
							<input type="text" name="mystery_friend_need2" value="{php echo empty($config['mystery_friend_need2'])?'':$config['mystery_friend_need2'];}" class="form-control" placeholder="若用户可以助力2次，则输入值">
							<span class="input-group-addon">人</span>
							{/if}
						</div>
						<div class="input-group" style="margin-bottom: 10px;">
							<span class="input-group-addon">第3个盲盒</span>
							<select class="form-control" name="mystery_friend_mode3" style="min-width: 80px;">
								<option value="0" {if $config['mystery_friend_mode3'] == 0 }selected="selected"{/if}>未开启</option>
								<option value="-1" {if $config['mystery_friend_mode3'] == -1 }selected="selected"{/if}>助力</option>
								<option value="1" {if $config['mystery_friend_mode3'] == 1 }selected="selected"{/if}>支付即可拆</option>
								<option value="2" {if $config['mystery_friend_mode3'] == 2 }selected="selected"{/if}>拼团成功可拆</option>
							</select>
							{if $config['mystery_friend_mode3']==-1}
							<span class="input-group-addon">助力</span>
							<input type="text" name="mystery_friend_need3" value="{php echo empty($config['mystery_friend_need3'])?'':$config['mystery_friend_need3'];}" class="form-control" placeholder="若用户可以助力3次，则输入值">
							<span class="input-group-addon">人</span>
							{/if}
						</div>
					</div>
				</div>
			</div>
			{if empty($config['mystery_friend_mode1']) && empty($config['mystery_friend_mode2']) && empty($config['mystery_friend_mode3']) }
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">拆盲盒条件</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="mystery_mode" value="0" {if $config['mystery_mode']==0} checked="checked"{/if} type="radio"> 默认助力成功拆
					</label>
					<label class="radio-inline">
						<input name="mystery_mode" value="1" {if $config['mystery_mode']==1} checked="checked"{/if} type="radio"> 支付即可拆
					</label>
					<label class="radio-inline">
						<input name="mystery_mode" value="2" {if $config['mystery_mode']==2} checked="checked"{/if} type="radio"> 拼团成功即可拆
					</label>
					<span class="help-block">盲盒支付即可拆：客户付了款，未达到助力人数也可以拆红包；</span>
				</div>
			</div>
			{else}
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">礼品中奖</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="mystery_gift_get" value="0" {if $config['mystery_gift_get']==0} checked="checked"{/if} type="radio"> 奖品不重复
					</label>
					<label class="radio-inline">
						<input name="mystery_gift_get" value="1" {if $config['mystery_gift_get']==1} checked="checked"{/if} type="radio"> 奖品重复
					</label>
					<span class="help-block">【奖品不重复】比如客户第一次中了个水杯，第二次无论水杯的中奖率是多高也不会再中水杯</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">礼品选择</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="mystery_gift_select" value="0" {if $config['mystery_gift_select']==0} checked="checked"{/if} type="radio"> 不选择
					</label>
					<label class="radio-inline">
						<input name="mystery_gift_select" value="1" {if $config['mystery_gift_select']==1} checked="checked"{/if} type="radio"> 礼品多选一
					</label>
					<span class="help-block">【礼品多选一】例如客户获得了2个礼品，提示客户二选一，选中后在定单管理中可查看</span>
				</div>
			</div>
			{/if}
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">拆盲盒结束时间</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="mystery_boxes_endtime_set" value="0" {if $config['mystery_boxes_endtime_set']==0} checked="checked"{/if} type="radio"> 与活动时间一致
					</label>
					<label class="radio-inline">
						<input name="mystery_boxes_endtime_set" value="1" {if $config['mystery_boxes_endtime_set']==1} checked="checked"{/if} type="radio"> 指定时间
					</label>
					<span class="help-block">【拆盲盒结束时间】超过时间，不可再拆盲盒，也无法获得新盲盒，只能查看盲盒礼品</span>
				</div>
			</div>
			{if $config['mystery_boxes_endtime_set']==1}
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">拆盲盒结束时间</label>
				<div class="col-sm-3 col-md-3 col-lg-3 col-xs-12">
					{php echo view_form_field_date('mystery_boxes_endtime',date("Y-m-d H:i:s", $config['mystery_boxes_endtime']),true);}
				</div>
			</div>
			{/if}
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">好友可助力次数</label>
				<div class="col-sm-6 col-xs-12">
					<div class="input-group">
						<span class="input-group-addon">共</span>
						<input type="text" class="form-control"  placeholder="" name="mystery_friend_help"  value="{$config['mystery_friend_help']}">
						<span class="input-group-addon">次</span>
					</div>
					<span class="help-block">帮助力的可帮几位好友助力，次数为0将不会限制助力次数，可无限助力</span>
				</div>
			</div>

			{if $config['get_mystery_boxes'] ==2 || $config['get_mystery_boxes']==3 || $system['is_mystery_boxes'] == 2 || $system['is_mystery_boxes'] == 3}
			<div class="form-group" >
				<label class="col-sm-2 col-xs-12 control-label">入口引导图</label>
				<div class="col-sm-6 col-xs-12">
					{php echo view_form_field_image('box_room_img',$config['box_room_img']);}
					<span class="help-block">礼品图：500*500px</span>
				</div>
			</div>
			{if $system['is_mystery_boxes_feichi'] !=1}
			<div class="form-group" >
				<label class="col-sm-2 col-xs-12 control-label">盲盒进度浮标</label>
				<div class="col-sm-6 col-xs-12">
					{php echo view_form_field_image('mystery_process_show_small_img',$config['mystery_process_show_small_img']);}
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">盲盒进度展现形式</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="mystery_process_show" value="0" {if $config['mystery_process_show']==0} checked="checked"{/if} type="radio"> 大图
					</label>
					<label class="radio-inline">
						<input name="mystery_process_show" value="1" {if $config['mystery_process_show']==1} checked="checked"{/if} type="radio"> 小图
					</label>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">延时弹出</label>
				<div class="col-sm-6 col-xs-12">
					<div class="input-group">
						<span class="input-group-addon">延时</span>
						<input type="text" class="form-control"  placeholder="" name="mystery_show_time"  value="{$config['mystery_show_time']}">
						<span class="input-group-addon">秒弹出盲盒</span>
					</div>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">页面中拆盲盒按扭</label>
				<div class="col-sm-5 col-xs-12">
					<div class="input-group">
						<span class="input-group-addon">未报名时提示</span>
						<input type="text" class="form-control"  placeholder="" name="mystery_my_join_text"  value="{if empty($config['mystery_my_join_text'])}立即报名拆盲盒{else}{$config['mystery_my_join_text']}{/if}">
						<span class="input-group-addon">相对高度</span>
						<input type="text" class="form-control"  placeholder="" name="mystery_my_join_height"  value="{if empty($config['mystery_my_join_height'])}600{else}{$config['mystery_my_join_height']}{/if}">
						<span class="input-group-addon">字体颜色</span>
					</div>
					<div class="input-group">
						<span class="input-group-addon">邀请好友</span>
						<input type="text" class="form-control"  placeholder="" name="mystery_my_share_text"  value="{if empty($config['mystery_my_share_text'])}邀请好友拆盲盒{else}{$config['mystery_my_share_text']}{/if}">
						<span class="input-group-addon">按扭颜色</span>
					</div>
				</div>
				<div class="col-sm-5 col-xs-12">
					{php $config['mystery_my_join_text_color']= $config['mystery_my_join_text_color']?$config['mystery_my_join_text_color']:'#ffffff';}
					{php echo view_form_field_color('mystery_my_join_text_color',$config['mystery_my_join_text_color']);}
					{php $config['mystery_my_join_color']= $config['mystery_my_join_color']?$config['mystery_my_join_color']:'#4734de';}
					{php echo view_form_field_color('mystery_my_join_color',$config['mystery_my_join_color']);}
				</div>
			</div>
			{/if}
			{/if}

			{if $system['is_mystery_boxes_feichi'] !=1}
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">礼品循环展示</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="mystery_gift_autoplay" value="0" {if $config['mystery_gift_autoplay']==0} checked="checked"{/if} type="radio"> 开启
					</label>
					<label class="radio-inline">
						<input name="mystery_gift_autoplay" value="1" {if $config['mystery_gift_autoplay']==1} checked="checked"{/if} type="radio"> 不开启
					</label>
					<span class="help-block">当礼品大于3个时循环展示</span>
				</div>
			</div>
			{if $config['get_mystery_boxes']==2}
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">报名拆盲盒是否留资料</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="mystery_join_info" value="0" {if $config['mystery_join_info']==0} checked="checked"{/if} type="radio"> 留资料
					</label>
					<label class="radio-inline">
						<input name="mystery_join_info" value="1" {if $config['mystery_join_info']==1} checked="checked"{/if} type="radio"> 不留资料
					</label>
				</div>
			</div>
			{/if}
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">拆盲盒获得礼品后的提示</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<div class="input-group">
						<span class="input-group-addon">顶部文字</span>
						<input type="text" class="form-control"  placeholder="" name="mystery_tips_top"  value="{php echo empty($config['mystery_tips_top'])?'恭喜获得':$config['mystery_tips_top'];}">
						<span class="input-group-addon">按扭</span>
						<input type="text" class="form-control"  placeholder="" name="mystery_tips_button"  value="{php echo empty($config['mystery_tips_button'])?'知道了':$config['mystery_tips_button'];}">
						<span class="input-group-addon">按扭下方提示</span>
						<input type="text" class="form-control"  placeholder="" name="mystery_tips_txt"  value="{php echo empty($config['mystery_tips_txt'])?'':$config['mystery_tips_txt'];}">
					</div>
				</div>
			</div>
			{else}
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">默认页面</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="mystery_help_first_view" value="1" {if $config['mystery_help_first_view']==1} checked="checked"{/if} type="radio"> 首页
					</label>
					<label class="radio-inline">
						<input name="mystery_help_first_view" value="0" {if $config['mystery_help_first_view']==0} checked="checked"{/if} type="radio"> 拆盲盒页面
					</label>
				</div>
			</div>
			{/if}
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">收集助力人客资</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="mystery_get_friend_info" value="0" {if $config['mystery_get_friend_info']==0} checked="checked"{/if} type="radio"> 不收集
					</label>
					<label class="radio-inline">
						<input name="mystery_get_friend_info" value="1" {if $config['mystery_get_friend_info']==1} checked="checked"{/if} type="radio"> 收集姓名+手机号
					</label>
					<label class="radio-inline">
						<input name="mystery_get_friend_info" value="2" {if $config['mystery_get_friend_info']==2} checked="checked"{/if} type="radio"> 只收集手机号
					</label>
					<span class="help-block">收集姓名+手机号：如需收集更多信息，请在表单设置下方设置</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">助力成功提示</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<div class="col-sm-8 col-xs-12">
						{php echo view_form_field_image('mystery_help_img',$config['mystery_help_img']);}
					</div>
					<div class="col-sm-4 col-xs-12">
						<div class="input-group">
							<span class="input-group-addon">宽度</span>
							<input type="text" class="form-control"  placeholder="" name="mystery_help_img_width"  value="{if empty($config['mystery_help_img_width'])}80{else}{$config['mystery_help_img_width']}{/if}">
							<span class="input-group-addon">%</span>
						</div>
					</div>
					<span class="help-block">助力成功提示，好友帮助力成功后的广告图</span>
				</div>
			</div>

		</div>
	</div>
	{if $system['is_mystery_boxes_feichi'] ==1}
	<div class="panel panel-default" role="tabpanel" style="">
		<div class="panel-heading">界面设置</div>
		<div class="panel-body" style="">

			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">背景色</label>
				<div class="col-sm-8 col-xs-12">
					<div class="col-sm-4 col-xs-4">
						<div class="input-group">
							<span class="input-group-addon">帮拆</span>
							{php echo view_form_field_color('mystery_boxes_help_color',empty($config['mystery_boxes_help_color'])?'#0023a1':$config['mystery_boxes_help_color']);}
						</div>
					</div>
					<div class="col-sm-4 col-xs-4">
						<div class="input-group">
							<span class="input-group-addon">拆盲盒</span>
							{php echo view_form_field_color('mystery_boxes_feichi_color',empty($config['mystery_boxes_feichi_color'])?'#001048':$config['mystery_boxes_feichi_color']);}
						</div>
					</div>
					<div class="col-sm-4 col-xs-4">
						<div class="input-group">
							<span class="input-group-addon">排行榜</span>
							{php echo view_form_field_color('tuanrank_color',empty($config['tuanrank_color'])?'#710f00':$config['tuanrank_color']);}
						</div>
					</div>

				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">拆盲盒顶部图片组</label>
				<div class="col-sm-8 col-xs-12">
					{php echo view_form_field_multi_image('boxs_top_imgs',$config['boxs_top_imgs']);}
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">拆盲盒底部图片组</label>
				<div class="col-sm-8 col-xs-12">
					{php echo view_form_field_multi_image('boxs_bottom_imgs',$config['boxs_bottom_imgs']);}
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">盲盒分享标题</label>
				<div class="col-sm-8 col-xs-12">
					<input type="text" class="form-control"  placeholder="" name="mystery_sharetitle"  value="{$config['mystery_sharetitle']}">
					<span class="help-block">支付的客户分享时的标题，NICK表示昵称，NAME表示姓名,SHOPNAME表示商家名称,为空时为主标题</span>
					<span class="help-block">如：NAME刚刚获得一个豪华礼盒~快来帮我助力拆开！员工分享为无效；</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">盲盒分享图标</label>
				<div class="col-sm-8 col-xs-12">
					{php echo view_form_field_image('mystery_shareimg',$config['mystery_shareimg']);}
					<span class="help-block">分享图片，建议1000*800,为空时为活动主图，图片宽高比例为5:4</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">表单上方图</label>
				<div class="col-sm-8 col-xs-12">
					{php empty($config['mystery_form_top'])?$config['mystery_form_top']="https://css2020.yixuan.net/2020css/mystery_boxes_feichi/images/mh_form_top.png":"";}
					{php echo view_form_field_image('mystery_form_top',$config['mystery_form_top']);}
					<span class="help-block">表单上方图:<a style="color: #000000" href="https://css2020.yixuan.net/2020css/mystery_boxes_feichi/images/mh_form_top.psd" target="_blank">点击下载模版</a></span>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">团购福利</label>
				<div class="col-sm-8 col-xs-12">
					<div class="input-group">
						<span class="input-group-addon">文本1</span>
						<input type="text" class="form-control"  placeholder="" name="mystery_group_tips1"  value="{php echo empty($config['mystery_group_tips1'])?'你家也有萌娃，那就赶快加入':$config['mystery_group_tips1'];}">
						<span class="input-group-addon">文本2</span>
						<input type="text" class="form-control"  placeholder="" name="mystery_group_tips2"  value="{php echo empty($config['mystery_group_tips2'])?'一起组团':$config['mystery_group_tips2'];}">
						<span class="input-group-addon">文本3</span>
						<input type="text" class="form-control"  placeholder="" name="mystery_group_tips3"  value="{php echo empty($config['mystery_group_tips3'])?'抢购黑卡会员':$config['mystery_group_tips3'];}">
					</div>
				</div>
			</div>

		</div>
	</div>
	<div class="panel panel-default" role="tabpanel" style="">
		<div class="panel-heading">团长排行榜设置</div>
		<div class="panel-body" style="">
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">是否开启</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="mystery_boxs_isrank" value="0" {if $config['mystery_boxs_isrank']==0} checked="checked"{/if} type="radio"> 开启团长排行榜
					</label>
					<label class="radio-inline">
						<input name="mystery_boxs_isrank" value="1" {if $config['mystery_boxs_isrank']==1} checked="checked"{/if} type="radio"> 关闭
					</label>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">首页显示</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="mystery_boxs_isrank_worker" value="0" {if $config['mystery_boxs_isrank_worker']==0} checked="checked"{/if} type="radio"> 关闭
					</label>
					<label class="radio-inline">
						<input name="mystery_boxs_isrank_worker" value="1" {if $config['mystery_boxs_isrank_worker']==1} checked="checked"{/if} type="radio"> 员工首页显示排名赛
					</label>
				</div>
			</div>

			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">排行榜顶部图片组</label>
				<div class="col-sm-8 col-xs-12">
					{php echo view_form_field_multi_image('rank_top_imgs',$config['rank_top_imgs']);}
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">排行榜底部图片组</label>
				<div class="col-sm-8 col-xs-12">
					{php echo view_form_field_multi_image('rank_bottom_imgs',$config['rank_bottom_imgs']);}
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">排行榜提示</label>
				<div class="col-sm-6 col-xs-12">

					<div class="input-group">
						<span class="input-group-addon">提示</span>
						<input type="text" class="form-control"  placeholder="" name="mystery_boxs_rank_tips"  value="{if empty($config['mystery_boxs_rank_tips'])}共有#total位团长参与排行{else}{$config['mystery_boxs_rank_tips']}{/if}">
						<span class="input-group-addon">高度</span>
						<input type="text" class="form-control"  placeholder="" name="mystery_boxs_rank_hight"  value="{if empty($config['mystery_boxs_rank_hight'])}775{else}{$config['mystery_boxs_rank_hight']}{/if}">
					</div>
					<span class="help-block">以下按扭文字通配符: #total代表团长数</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">排行榜显示</label>
				<div class="col-sm-6 col-xs-12">
					<div class="input-group">
						<span class="input-group-addon">前</span>
						<input type="text" class="form-control"  placeholder="" name="rank_limit"  value="{$config['rank_limit']}">
						<span class="input-group-addon">名，为0不限制；</span>
						<span class="input-group-addon">团人数</span>
						<select class="form-control" name="rank_show_tuan" style="min-width: 80px;">
							<option value="0" {if $config['rank_show_tuan'] == 0 }selected="selected"{/if}>显示团人数</option>
							<option value="1" {if $config['rank_show_tuan'] == 1 }selected="selected"{/if}>不显示团人数</option>
						</select>
						<span class="input-group-addon">排序方式</span>
						<select class="form-control" name="rank_sort_tuan" style="min-width: 80px;">
							<option value="0" {if $config['rank_sort_tuan'] == 0 }selected="selected"{/if}>按最后一个团员报名时间</option>
							<option value="1" {if $config['rank_sort_tuan'] == 1 }selected="selected"{/if}>按团长报名时间</option>
						</select>
					</div>
				</div>
			</div>

		</div>
	</div>

	{elseif $config['get_mystery_boxes'] == 1 || ($config['get_mystery_boxes']==0 && $system['is_mystery_boxes'] < 2)}
	<div class="panel panel-default" role="tabpanel" style="">
		<div class="panel-heading">支付与界面设置</div>
		<div class="panel-body" style="">
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">全款金额</label>
				<div class="col-sm-6 col-xs-12">
					<div class="input-group">
						<span class="input-group-addon">￥</span>
						<input type="text" class="form-control"  placeholder="" name="mystery_lump_sump"  value="{$config['mystery_lump_sump']}">
						<span class="input-group-addon">元</span>
					</div>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">全款支付</label>
				<div class="col-sm-9 col-xs-12">
					<input type="text" class="form-control"  placeholder="" name="mystery_menu_lump_sump"  value="{if empty($config['mystery_menu_lump_sump'])}点击#all全款支付{else}{$config['mystery_menu_lump_sump']}{/if}">
					<span class="help-block">以下按扭文字通配符:#all表示全款金额+元 #fee表示报名费 #dan表示单买价 #tuan表示拼团价</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">线上补全款</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="mystery_is_lump_sump" value="0" {if $config['mystery_is_lump_sump']==0} checked="checked"{/if} type="radio"> 不补全款
					</label>
					<label class="radio-inline">
						<input name="mystery_is_lump_sump" value="1" {if $config['mystery_is_lump_sump']==1} checked="checked"{/if} type="radio"> 补全款
					</label>
					<span class="help-block">默认员工可以手机管理端修改客户报名信息,以及更改所属团队,储值卡余额等</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">查看我的盲盒进度</label>
				<div class="col-sm-9 col-xs-12">
					<input type="text" class="form-control"  placeholder="" name="mystery_menu_view_boxs"  value="{if empty($config['mystery_menu_view_boxs'])}查看我的盲盒进度{else}{$config['mystery_menu_view_boxs']}{/if}">
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">页面中拼团成功头像</label>
				<div class="col-sm-5 col-xs-12">
					<div class="input-group">
						<span class="input-group-addon">头像大小</span>
						<input type="text" class="form-control"  placeholder="" name="mystery_page_avatar_size"  value="{if empty($config['mystery_page_avatar_size'])}120{else}{$config['mystery_page_avatar_size']}{/if}">
						<span class="input-group-addon">相对高度</span>
						<input type="text" class="form-control"  placeholder="" name="mystery_page_avatar_height"  value="{if empty($config['mystery_page_avatar_height'])}120{else}{$config['mystery_page_avatar_height']}{/if}">
						<span class="input-group-addon">昵称颜色</span>
					</div>
				</div>
				<div class="col-sm-5 col-xs-12">
					{php $config['mystery_page_avatar_color']= $config['mystery_page_avatar_color']?$config['mystery_page_avatar_color']:'#ffffff';}
					{php echo view_form_field_color('mystery_page_avatar_color',$config['mystery_page_avatar_color']);}
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">页面中全款支付</label>
				<div class="col-sm-5 col-xs-12">
					<div class="input-group">
						<span class="input-group-addon">按扭文字</span>
						<input type="text" class="form-control"  placeholder="" name="mystery_page_lump_sump_text"  value="{if empty($config['mystery_page_lump_sump_text'])}点击#all全款支付{else}{$config['mystery_page_lump_sump_text']}{/if}">
						<span class="input-group-addon">相对高度</span>
						<input type="text" class="form-control"  placeholder="" name="mystery_page_lump_sump_height"  value="{if empty($config['mystery_page_lump_sump_height'])}450{else}{$config['mystery_page_lump_sump_height']}{/if}">
						<span class="input-group-addon">字体颜色</span>
					</div>
					<div class="input-group">
						<span class="input-group-addon">按扭文字</span>
						<input type="text" class="form-control"  placeholder="" name="mystery_page_lump_sump_success_text"  value="{if empty($config['mystery_page_lump_sump_success_text'])}已支付#all元{else}{$config['mystery_page_lump_sump_success_text']}{/if}">
						<span class="input-group-addon">按扭颜色</span>
						</div>
				</div>
				<div class="col-sm-5 col-xs-12">
					{php $config['mystery_page_lump_sump_font_color']= $config['mystery_page_lump_sump_font_color']?$config['mystery_page_lump_sump_font_color']:'#000000';}
					{php echo view_form_field_color('mystery_page_lump_sump_font_color',$config['mystery_page_lump_sump_font_color']);}
					{php $config['mystery_page_lump_sump_color']= $config['mystery_page_lump_sump_color']?$config['mystery_page_lump_sump_color']:'#ffd245';}
					{php echo view_form_field_color('mystery_page_lump_sump_color',$config['mystery_page_lump_sump_color']);}
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">页面中邀请好友</label>
				<div class="col-sm-5 col-xs-12">
					<div class="input-group">
						<span class="input-group-addon">按扭文字</span>
						<input type="text" class="form-control"  placeholder="" name="mystery_page_friend_text"  value="{if empty($config['mystery_page_friend_text'])}点击邀请好友拆盲盒{else}{$config['mystery_page_friend_text']}{/if}">
						<span class="input-group-addon">相对高度</span>
						<input type="text" class="form-control"  placeholder="" name="mystery_page_friend_height"  value="{if empty($config['mystery_page_friend_height'])}600{else}{$config['mystery_page_friend_height']}{/if}">
						<span class="input-group-addon">字体颜色</span>
					</div>
					<div class="input-group">
						<span class="input-group-addon">成功文字</span>
						<input type="text" class="form-control"  placeholder="" name="mystery_page_friend_success_text"  value="{if empty($config['mystery_page_friend_success_text'])}继续邀请好友参与{else}{$config['mystery_page_friend_success_text']}{/if}">
						<span class="input-group-addon">按扭颜色</span>
					</div>
				</div>
				<div class="col-sm-5 col-xs-12">
					{php $config['mystery_page_friend_font_color']= $config['mystery_page_friend_font_color']?$config['mystery_page_friend_font_color']:'#ffffff';}
					{php echo view_form_field_color('mystery_page_friend_font_color',$config['mystery_page_friend_font_color']);}
					{php $config['mystery_page_friend_color']= $config['mystery_page_friend_color']?$config['mystery_page_friend_color']:'#4734de';}
					{php echo view_form_field_color('mystery_page_friend_color',$config['mystery_page_friend_color']);}
				</div>
			</div>
		</div>
	</div>
	<div class="panel panel-default" role="tabpanel" style="">
		<div class="panel-heading">拼团成功图文</div>
		<div class="panel-body" style="">
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">预览模式</label>
				<div class="col-sm-9 col-md-8 col-lg-8 col-xs-12">
					<label class="radio-inline">
						<input name="mystery_is_preview" value="0" {if $config['mystery_is_preview']==0} checked="checked"{/if} type="radio"> 关闭
					</label>
					<label class="radio-inline">
						<input name="mystery_is_preview" value="1" {if $config['mystery_is_preview']==1} checked="checked"{/if} type="radio"> 开启
					</label>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label"><span style="color: red;">*</span>邀请好友上方图文</label>
				<div class="col-sm-8 col-xs-12">
					{php echo view_ueditor('mystery_boxes_content_top', $config['mystery_boxes_content_top']);}
					<span class="help-block">{if $isold==true && !$_G['isSuperAdmin']}已禁用,{/if}活动的正文,可放文字/图片/视频</span>
				</div>
			</div>
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label"><span style="color: red;">*</span>邀请好友下方图文</label>
				<div class="col-sm-8 col-xs-12">
					{php echo view_ueditor('mystery_boxes_content_bottom', $config['mystery_boxes_content_bottom']);}
					<span class="help-block">{if $isold==true && !$_G['isSuperAdmin']}已禁用,{/if}活动的正文,可放文字/图片/视频</span>
				</div>
			</div>
		</div>
	</div>
	{/if}
	<div class="panel panel-default" role="tabpanel" style="">
		<div class="panel-heading">盲盒礼品</div>
		<div class="panel-body" style="">
			<div class="form-group">
				<label class="col-sm-1 col-xs-12 control-label">礼品数量:</label>
				<div class="col-sm-3 col-xs-12" style="padding-left: 30px;">
					<div class="input-group">
						<span class="input-group-addon">礼品</span>
						<input type="text" class="form-control"  placeholder="" name="mystery_gift_num"  value="{php echo empty($config['mystery_gift_num'])?5:$config['mystery_gift_num'];}">
						<span class="input-group-addon">个</span>
					</div>
				</div>
			</div>
			<input type="hidden" name="address" value="盲盒礼品" />
			{loop $addressarr $index $row}
			<div class="form-group">
				<label class="col-sm-1 col-xs-12 control-label">礼品{php echo $index+1;}：</label>
				<div class="col-sm-11 col-xs-12">
					<div class="col-sm-9 col-xs-12">
						<div class="input-group">
							<span class="input-group-addon">名称</span>
							{if empty($row['count'])}
							<input type="text" name="addressoptions[]" class="form-control"  value="{$row['name']}" >
							{else}
							<input type="text" name="addressoptions2[]" class="form-control" disabled value="{$row['name']}" >
							<input type="hidden" name="addressoptions[]" class="form-control"  value="{$row['name']}" >
							<span class="input-group-addon">已中出 {$row['count']} 个，无法修改名称</span>
							{/if}
						</div>
						<div class="input-group">
							<span class="input-group-addon">价值</span>
							<input type="text" name="addressprice[]" class="form-control" placeholder="" value="{$config['addressprice'][$index]}" >
							<span class="input-group-addon">中奖率</span>
							<input type="text" name="addressprobability[]" class="form-control" placeholder="0-100"  value="{$config['addressprobability'][$index]}">
						</div>
						<div class="input-group">
							<span class="input-group-addon">库存</span>
							<input type="hidden" name="addressstock_old[]" value="{php echo isset($config['addressstock'][$index])?$config['addressstock'][$index]:10000;}" />
							<input type="text" name="addressstock[]" class="form-control" placeholder=""  value="{php echo isset($config['addressstock'][$index])?$config['addressstock'][$index]:10000;}">
							<span class="input-group-addon">所属盲盒</span>
							<select class="form-control" name="address_type[]" style="min-width: 80px;">
								<option value="0" {if $config['address_type'][$index] == 0 }selected="selected"{/if}>所有</option>
								<option value="1" {if $config['address_type'][$index] == 1 }selected="selected"{/if}>第一个盲盒</option>
								<option value="2" {if $config['address_type'][$index] == 2 }selected="selected"{/if}>第二个盲盒</option>
								<option value="3" {if $config['address_type'][$index] == 3 }selected="selected"{/if}>第三个盲盒</option>
							</select>
							<span class="input-group-addon">状态</span>
							<select class="form-control" name="address_status[]" style="min-width: 80px;">
								<option value="0" {if $config['address_status'][$index] == 0 }selected="selected"{/if}>上架</option>
								<option value="1" {if $config['address_status'][$index] == 1 }selected="selected"{/if}>下架</option>
							</select>
						</div>
					</div>
					<div class="col-sm-3 col-xs-12">
						{php echo view_form_field_image('addressimg[]',$config['addressimg'][$index]);}
						<span class="help-block">礼品图：500*500px</span>
					</div>
				</div>
			</div>
			{/loop}
			<div class="form-group">
				<label class="col-sm-2 col-xs-12 control-label">中奖规则：</label>
				<div class="col-sm-10 col-xs-12">
					<span class="help-block">所属盲盒：如第二个盲盒为支付成功即可拆，则中奖时只会从"所有"与"第二个盲盒"中产生；</span>
					<span class="help-block">中奖率为0不会中，所有中奖率加起来等于100，每个用户只有一次机会</span>
					<span class="help-block">礼品名称可加#br换行</span>
					<span class="help-block">库存中出去后会自动减，为0时不会中出</span>
					<span class="help-block">奖品更换时，请选择下架，否则原有中奖者会看不到图片等中奖信息</span>
				</div>
			</div>

		</div>
	</div>
</div>